import numpy as np

def embed_watermark(model, watermark):
    """
    在模型中嵌入水印
    :param model: 模型参数
    :param watermark: 水印
    :return: 嵌入水印后的模型
    """
    model_with_watermark = model.copy()
    model_with_watermark[-1] = watermark
    return model_with_watermark

# 示例
model = np.random.randn(10)
watermark = 42
model_with_watermark = embed_watermark(model, watermark)
print(f"Model with watermark: {model_with_watermark}")